-- GENERATED SPELL FOR [Gorloc Dredger] --


function spell0_25701(pUnit, Event) --@Deep Dredge,Self--
pUnit:FullCastSpellOnTarget(50520,pUnit)
pUnit:RegisterEvent('Sorts_25701', 2000, 1)
end

function spell1_25701(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15576,pUnit)
pUnit:RegisterEvent('Sorts_25701', 529, 1)
end

function Sorts_25701(pUnit, Event)
local choix_sorts_25701 = math.random(0, 1)
if choix_sorts_25701 == 0 then
pUnit:RegisterEvent('spell0_25701', 1, 1)
end
if choix_sorts_25701 == 1 then
pUnit:RegisterEvent('spell1_25701', 1, 1)
end
end

function mob25701_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25701', math.random(1500, 3000), 1)
end

function mob25701_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25701_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25701_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25701, 1, 'mob25701_Action')
RegisterUnitEvent(25701, 2, 'mob25701_Leave')
RegisterUnitEvent(25701, 3, 'mob25701_Kill')
RegisterUnitEvent(25701, 4, 'mob25701_Die')
